<?php
return [
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
//            'class' => 'yii\caching\FileCache',
            'class' => 'yii\redis\Cache',  //redis接管缓存
        ],
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => '127.0.0.1',
            'port' => 6379,
            'database' => 0,
        ],

        //路由
            'urlManager' => [
                //'class' => 'yii\web\UrlManager',
                'enablePrettyUrl' => true,
                'showScriptName' => false,
                'enableStrictParsing' => false,
                'rules'=>[
                    'site/fabu'=>'site/fabu',
                    //登录
                    'login/check'=>'login/checklogin',//登录
                    'login/out'=>'login/loginout',//退出登录
                    //登录

                    /*
                     * 消息
                     */
                    'info/details'=>'info/detailsinfo',//消息详情
                    'info/tlist'=>'info/totallist',//消息全部列表
                    /*
                     * 消息
                     */

                ],
            ],

    ],



];
